package com.faye.stdio.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class LocationService {

    @Tool(name = "getLocation", description = "Get location of the city")
    public String getLocation(@ToolParam(description = "City name") String cityName) {
        // Implementation
        log.info("getLocation: {}", cityName);
        return "It is in China";
    }
}
